package com.block.db.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 渠道账户流水表
 * </p>
 *
 * @author 
 * @since 2023-02-02
 */
@Getter
@Setter
@TableName("ml_account_item_channle_his")
public class AccountItemChannleHis implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
      private Long id;

    private String dateInfo;

    /**
     * 账户ID
     */
    private Integer accountId;

    /**
     * 渠道名称
     */
    private String channelCode;

    /**
     * 渠道编号
     */
    private String channelName;

    /**
     * 操作类型
     */
    private String actionType;

    /**
     * 改变金额
     */
    private BigDecimal changeAmount;

    /**
     * 原金额
     */
    private BigDecimal originAmount;

    /**
     * 现金额
     */
    private BigDecimal currentAmount;

    private String mainAccountId;
    private String mainAccountName;

    /**
     * 入账申请ID
     */
    private String dataId;

      @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

      private String operatorId;
      private String operatorName;

}
